//
//  SWVerifyCodeFetchReq.swift
//  MissMedia
//
//  Created by linhan on 16/4/1.
//  Copyright © 2016年 Miss. All rights reserved.
//

import Foundation

enum VerifyCodeFetchAction:String
{
    case Register = "1"
    case PasswordReset = "2"
    case PhoneBinding = "3"
}

class SWVerifyCodeFetchReq: SWBaseRequest
{
    var phone:String = ""
    var action:VerifyCodeFetchAction = VerifyCodeFetchAction.Register
    
    override init()
    {
        super.init()
        options.authorize = false
        api = .FetchVerifyCode
    }
    
    override var params:Any?
    {
        var param:[String:Any] = ["phone":phone, "type":action.rawValue]
        //let sign:String = SWNetworkUtil.getSign(data: param, secKey: SW.Config.RequestSecKey)
        //param["sign"] = sign
        return param
    }
    
    
}
